<!DOCTYPE html>
<html>
<#include "../../common/header.ftl">
<script src="${basePath}/js/appUser/moneyLog.js?v=201711021700"></script>

<head>
<meta charset="UTF-8">
<title>余额操作记录</title>
<style>
	.left{
		float:left;
		min-width:100px;
		margin-left: 10px;
	}
	.table-margin{
		margin:5px 3%;
		width:92%;
	}
</style>

</head>
<body>
   
<table class="table table-margin">
  <thead>
      <tr>
         <th>当时用户余额</th>
         <th>类型</th>
         <th>金额</th>
         <th>流水号</th>
         <th>创建时间</th>
         <th>创建人</th>
      </tr>
  </thead>
  <tbody>
	<#list page.itemList! as moneyLog>
		<tr>
			<td>${moneyLog.userMoney?string('#0.00')}</td>
			<td><#if moneyLog.type?? && moneyLog.type==1>充值
				<#elseif moneyLog.type?? && moneyLog.type==2>支付订单
				<#elseif moneyLog.type?? && moneyLog.type==3>提现
				<#elseif moneyLog.type?? && moneyLog.type==4>售后退款
				<#else>异常
				</#if>
			</td>
			<td>${moneyLog.amount?string('#0.00')}</td>
			<td>${moneyLog.serialNumber!}</td>
			<td>${moneyLog.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
			<td>${moneyLog.creator}</td>
		</tr>
	</#list>
  </tbody>
</table>
	<#-- 翻页模块代码 -->
	<ul class="pager">
		<li><a href="javascript:void(0);" onclick="fanye('1')">首页</a></li>
		<#if (page.pageNo>1) > 
		<li><a	href="javascript:void(0);" onclick="fanye('${page.prevPage}')">上一页</a></li>
		<#else>
		<li><a href="javascript:void(0);">上一页</a></li> 
		</#if>
		<li><a href="#">第${page.pageNo}页/共${page.totalPage}页</a></li>
		<#if (page.nextPage>page.pageNo) >
		<li><a href="javascript:void(0);" onclick="fanye('${page.nextPage}')">下一页</a></li>
		<#else>
		<li><a href="javascript:void(0);">下一页</a></li>
		</#if>
		<li><a href="javascript:void(0);" onclick="fanye('${page.totalPage}')">尾页</a></li>
	</ul>
  
</body>
<script type="text/javascript">
	var basePath="${basePath}";
	var init={
	    userId:"${userId!}"
	}
	$(function(){
		layui.use(['form', 'layer'] , function(){
		  var layer = layui.layer;
		  var form = layui.form(); 
	});
});
</script>
</html>